home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 June / EnigmA AMIGA RUN 08 (1996)(G.R. Edizioni)(IT)[!][issue 1996-06][EARSAN CD VII].iso / earcd / gui / gtldv374.rdm < prev    next >
Text File  |  1996-05-20  |  14KB  |  310 lines

  1. Short:    GUI creation library - developer archive
  2. Author:   P-O Yliniemi / Staffan Hämälä
  3. Uploader: peoyli@pluggnet.se (P-O Yliniemi)
  4. Version:  37.4
  5. Type:     dev/gui
  6.  
  7. Some examples may have weird names (for those who don't understand swedish),
  8. and some text files may be in swedish. This will be fixed in a later release.
  9. Contact me if there is any problem using any of the examples or the docs.
  10.  
  11. Two versions of the .library file is available with this developer package.
  12. One is the "normal" library, and the other one prints out a lot of info when
  13. executing a program that uses GadUtil.
  14.  
  15. If you need to use the debug version, rename the normal version in libs:,
  16. copy the debug version to libs, and rename it to gadutil.library. Reverse
  17. this to change back to the normal version. Don't forget to "flush" all
  18. unused libraries or reboot before testing the program again.
  19.  
  20. All necessary files for Asm & C development are included.
  21.  
  22. Changes overview:
  23. ~~~~~~~~~~~~~~~~~
  24. * 37.4  (14-May-96)
  25.     Created a new gadget kind: LABEL_KIND. This gadget kind is used
  26.     to place text relative to other gadgets, bevel boxes, and other
  27.     texts. Can use the same type of shadows that the text for the
  28.     bevel box.
  29.  
  30.     Implemented a new function in the library: GU_CloseFont. Works
  31.     like graphics CloseFont, but takes the parameter in A0 instead
  32.     of A1.
  33.  
  34.     Replaced the list sort routine with a new one that sorts better.
  35.  
  36.     Wrote a new document, "GadUtil.index", that have a list over all
  37.     gadutil functions, sorted by what they do. There are also some
  38.     shortcuts to all tags for gadutil's own gadget kinds.
  39.  
  40.     Created two new flags for BEVELBOX_KIND and LABEL_KIND:
  41.     BB_3DTEXT - can be used as a replacement for GUBB_3DText, TRUE
  42.     LB_3DTEXT - can be used as a replacement for GULB_3DText, TRUE
  43.     
  44. * 37.3  (10-May-96)
  45.     Enforcer hits fixed in the code that handles the GU_AdjustLeft
  46.     and GU_AdjustRight tags.
  47.  
  48.     A new function to clear the inner part of a window was added.
  49.  
  50.     A new function to size (and move, if necessary) a window was
  51.     added.
  52.  
  53.     Bug fix in assembly language include file.
  54.  
  55. * 37.2  (02-May-96)
  56.     Started programming in StormC and did some tests with the library,
  57.     noticed that there was a couple of errors in some include files.
  58.  
  59.     GU_UpdateProgress was wrongly specified in the FD/clib files.
  60.     The output of GU_GetGadgetPtr was specified as (struct Gadget *),
  61.     this is now corrected.
  62.  
  63.     Included an example in C that uses the PROGRESS_KIND gadget.
  64.  
  65. * 37.1  (01-May-96)
  66.     IMAGE_KIND gadget bug fix. The color of the unselected image of
  67.     the gadget was wrong, if the image used more than 4 colors.
  68.  
  69. * 37.0  (29-Apr-96)
  70.     A new function that checks the library's revision added.
  71.     Two new tags added: GU_FractWidth and GU_FractHeight. Suggested
  72.     by Morten Amundsen.
  73.  
  74.     Some small bug fixes in 'C' include files (unterminated comments).
  75.     Cleaned up BetterTest.c a bit (removed some {}). Bug fix on the
  76.     last line of the example (GT_ReplyIMsg -> GU_ReplyIMsg).
  77.  
  78.     Added support for StormC in both installer script and include-
  79.     file installer. Created dictionary for StormC, so that all words
  80.     that belongs to GadUtil (functions, tags and constants) is shown
  81.     in another color.
  82.  
  83. * 36.60 (24-Feb-96)
  84.     Uses the screen's font as the gadget font if no GU_DefTextAttr or
  85.     GU_TextAttr tag is used. Bug fix from v36.59. Changed some docs,
  86.     assembled all examples,    changed installation scripts.
  87.  
  88. * 36.59 (06-Jan-96)
  89.     More docs completed (all docs, finally). Bug fix in the GU_AutoWidth,
  90.     GU_AdjustLeft and GU_AdjustRight tags. The underscore character was
  91.     counted as a normal one. This made gadgets without hotkeys one char
  92.     smaller than other gadgets. A new function that sorts one or two
  93.     lists was added. Some new constants added in include files.
  94.     Changed GU_MinimumIDCMP to support hotkeys. Changed PROGRESS_KIND
  95.     to use GU_GadgetText and GU_LocaleText. Uses the screen's font as
  96.     the gadget font if no GU_DefTextAttr or GU_TextAttr tag is used.
  97.  
  98. * 36.58 (01-Jan-96)
  99.     SLIDER_KIND and SCROLLER_KIND gadgets returned wrong result in
  100.     im->Code if the gadget was changes using the hotkey. Bug reported
  101.     by Lucasz Szelag.
  102.  
  103. * 36.57 (10-Dec-95)
  104.     Some more docs finished. A memory loss bug was fixed.
  105.  
  106. * 36.56 (10-Oct-95)
  107.     Changed some routines, so that hotkeys can't be used on disabled
  108.     gadgets. Made it possible to disable IMAGE_KIND, FILE_KIND and
  109.     DRAWER_KIND gadgets.
  110.  
  111. * 36.55 (30-Sep-95)
  112.     Bug fix in the hotkey part of the library. Wrong code were sent back
  113.     when using GU_LabelHotkey with a LISTVIEW_KIND gadget. A new gadget
  114.     kind was created, PROGRESS_KIND.
  115.  
  116. * 36.54 (06-Jul-95)
  117.     Added support for GU_AutoWidth to CYCLE_KIND gadgets.
  118.  
  119. * 36.53 (05-Jul-95) 
  120.     3 new tags and 4 new flags was added for the BEVELBOX_KIND gadget.
  121.     BEVELBOX_KIND gadgets can now have a shadow added to the text in the
  122.     border. The "sun" can be placed in 4 different places. GU_MinimumIDCMP
  123.     tag was added.
  124.  
  125. * 36.52 (25-Jun-95)
  126.     First public release. Some new flags for the BEVELBOX_KIND gadget was
  127.     added. Supports a total of 100 bevelbox kinds.
  128.  
  129.                                           P-O 960514
  130.                                           ~~~~~~~~~~
  131. ------------------------------------------------------------------------------
  132.  
  133.                             GadUtil.library v37.4
  134.                             ~~~~~~~~~~~~~~~~~~~~~
  135.     GadUtil is another gui library which main goal was to make it easy to
  136.     create font sensitive user interfaces. The library has grown away from
  137.     this main goal, and become another useful-routine-library.
  138.  
  139.   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  140.     Distribution:
  141.  
  142.         1) Distribution of this library is allowed in two ways:
  143.              ¹) Only the .library file(s)
  144.              ²) The complete distribution
  145.  
  146.         2) Programmers of totally free software can use and distribute this
  147.           library for free.
  148.  
  149.         3) Programmers of Shareware, Licensware, commercial products and other
  150.            programs that the programmer get any kind of profit from shall send
  151.            a fully working (and registered) copy of the program and its docs to
  152.            us. All larger updates of the program should also be sent to us.
  153.           
  154.         4) Programmers of non-free software not covered by 1) and 2) (my Diskware
  155.            concept belongs to this group) shall be treated as in 3) (a fully
  156.            working and registered copy...).
  157.  
  158.         5) All programs (except commercial products in some cases) must state
  159.            that gadutil.library is used. This may be done in either the About
  160.            requester or in the documentation, but best of all in both places.
  161.  
  162.            Demonstration programs for gadutil.library (that includes the full
  163.            source) may be distributed without this note.
  164.  
  165.            Example for inclusion in About requester:
  166.  
  167.                 "This program uses gadutil.library, which
  168.                  is Copyright © 1994-1996 by P-O Yliniemi
  169.                  and Staffan Hämälä."
  170.  
  171.         6) All localized programs that uses this library should include the
  172.            .ct file(s) to allow anyone to translate that program into their
  173.            own language.
  174.  
  175.  
  176.   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  177.     Below is a list of some of the main functions covered by this library.
  178.  
  179.     * FAST (NO OR VERY SMALL DIFFERENCE AGAINST GADTOOLS) AND SMALL (LESS THAN 10k).
  180.       WRITTEN IN ASSEMBLY LANGUAGE. NO F*CKING 'C' or any other slow language!
  181.  
  182.     * Font adaptive. Use any of the system fonts and most other fonts for
  183.       gadgets, texts and menus. All gadgets are placed relative to each
  184.       other, but can be placed at absolute positions (needed for the first
  185.       gadget).
  186.  
  187.     * No need to use GIMMEZEROZERO windows, as this is automatically handled
  188.       by the library. If you specify a gadget position of 10,10 the gadget
  189.       will be placed at 10,10 within the window's border.
  190.  
  191.     * Localized. It is really easy to localize all your (new) programs by
  192.       using this library. Functions and macros for creating localized menus
  193.       are supplied.
  194.  
  195.     * Both assembly and 'C' language support. This is one of the things that is
  196.       missing in most of the other gui libraries. Some extra macros are defined
  197.       for assembly language users, and will make the gadget and menu creating
  198.       process even more easy.
  199.  
  200.     * All GadTools gadgets are supported. Some extra functions are provided
  201.       for ListViews. BUTTON_KIND (and IMAGE_KIND) gadgets have some extra tags,
  202.       including a toggle-select option.
  203.  
  204.       5 extended gadget types are handled by the library:
  205.     
  206.         · FILE_KIND     - gadget for selecting a file.
  207.  
  208.         · DRAWER_KIND   - gadget for selecting a drawer. Most programs also
  209.                          use this gadget for file selection.
  210.  
  211.         · IMAGE_KIND    - uses an intuition image for the gadget. Can use
  212.                           different images for selected and non-selected state.
  213.  
  214.         · BEVELBOX_KIND - gadtools bevelboxes, with some extensions. All
  215.                           gadtools bevelboxes are supported (even with v37).
  216.                           Extensions allows text to be placed above, in or below
  217.                           the upper line of the box. All kinds can be inverted.
  218.  
  219.                           New for v36.52: Bevelbox text placement extended.
  220.                           3 new placements available together with the old
  221.                           ones: centered, left adjusted & right adjusted.
  222.  
  223.                           BFT_BUTTON   - GT v37 BUTTON_KIND border
  224.                           BFT_RIDGE    - GT v37 STRING_KIND border
  225.                           BFT_DROPBOX  - GT v39 BBFT_ICONDROPBOX border
  226.                           BFT_HORIZBAR - A horizontal shadowed line
  227.                           BFT_VERTBAR  - A vertical shadowed line
  228.  
  229.                           This makes it a total of 100 bevel box types. The bevel
  230.                           boxes are treated as gadgets by the library, and you
  231.                           can obtain the structure for the bevelbox in the same
  232.                           way as you get the gadget pointer.
  233.  
  234.                           New for v36.53: Added optional shadow on bevel box text.
  235.                           The shadow has a selectable color/pen and the "sun" can
  236.                           be placed in four different positions.
  237.  
  238.         · PROGRESS_KIND - progress indicator gadget. Background and fill color
  239.                           can be selected. Supports values up to 4.294.967.295,
  240.                           but maximum value should not exceed 4.294.967.295/width.
  241.                           v36.55.
  242.  
  243.     · LABEL_KIND    - a text label that can be placed relative to other texts,
  244.               gadgets, bevelboxes and progress indicators.
  245.  
  246.     * Can create the minimum required IDCMP mask so that all gadgets works.
  247.  
  248.     * A new OpenFont (graphics.library and diskfont.library replacement) is supplied.
  249.       This function will open any font (from RAM, ROM or load it from disk).
  250.  
  251.     * Functions for listviews include adding nodes (memory for the string is
  252.       allocated by the function), counting nodes, getting node pointers, clearing
  253.       a listview, attach and detach lists, moving nodes up and down. A function
  254.       that allows you to sort one or two lists is included from v36.59.
  255.  
  256.     * No need to open gadtools.library anymore, since all gadtools functions are
  257.       provided through this library. Some (the most useable) functions from locale
  258.       library are also provided by gadutil.
  259.  
  260.     * Many libraries are opened through gadutil.library, and these library bases
  261.       are available for your own use (you don't have to open or close some libs).
  262.  
  263.     * All gadgets are created using tag lists. Every next gadget will use the
  264.       previous gadgets values as defaults. Only one call to the gadget making
  265.       routine is needed for every gadget list.
  266.  
  267.     * All gadgets can have their own hotkey. No extra work is needed by the
  268.       programmer (only one extra tag).
  269.  
  270.     * Distributed with lots of examples, mostly in assembly language, but also
  271.       in 'C'.
  272.  
  273.     * Other functions include:
  274.  
  275.         · Status change for toggle select buttons.
  276.  
  277.         · String change for STRING and TEXT_KIND gadgets.
  278.  
  279.         · Disable functions for all gadget kinds (new for 36.56).
  280.  
  281.         · Routines to set up a busy-pointer (available for both v37 and v39). These
  282.           routines also blocks the input to the main window of the program.
  283.  
  284.         · Routine to check if the mouse pointer is within a gadgets box. Useful
  285.           for mouse-position sensitive appwindows.
  286.  
  287.         · Bevelbox and window refreshing functions.
  288.  
  289.     · Functions to clear and size/move windows
  290.  
  291.     * FAST (NO OR VERY SMALL DIFFERENCE AGAINST GADTOOLS) AND SMALL (LESS THAN 10k).
  292.       WRITTEN IN ASSEMBLY LANGUAGE. NO F*CKING 'C' or any other slow language!
  293.  
  294.  
  295.   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  296.   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  297.         Per-Olof Yliniemi                           Staffan Hämälä
  298.         Box 78                                      Pellovägen 268
  299.         S-980 61 Tärendö                            S-957 93 Pello
  300.         SWEDEN                                      SWEDEN
  301.  
  302.         email:                                      email:
  303.           peoyli@pluggnet.se                          staham@pluggnet.se
  304.  
  305.         phone:
  306.           +46-(0)978-20522
  307.  
  308.   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  309.   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  310.